<template>
  <el-progress v-show="percentage" :percentage="percentage" :show-text="false"/>
  <router-view/>
</template>

<script setup lang="ts">
import {useProgressStore} from '@/stores/progress'
import {storeToRefs} from 'pinia'

let progressStore = useProgressStore()
let {percentage} = storeToRefs(progressStore)
</script>

<style scoped lang="scss">
.el-progress {
  position: fixed;
  top: 0;
  width: 100%;
}
</style>